package com.perfma.xtest.tool.word;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.compress.utils.Lists;

import java.util.List;

/**
 * @description: 合并报告表数据（一行）
 * @author: 武士
 * @create: 2020-10-04 15:11
 **/
@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class PlanReportTableRowData {
    @ApiModelProperty(value = "事务名称")
    private List<String> name = Lists.newArrayList();
    @ApiModelProperty(value = "场景名称")
    private List<String> sceneName = Lists.newArrayList();
    @ApiModelProperty(value = "场景名称，和sceneName一样的数据，只是填充的空格可能不一样，用于app表格展示合并")
    private List<String> sceneNameApp = Lists.newArrayList();
    @ApiModelProperty(value = "report总并发数")
    private List<String> allUsers = Lists.newArrayList();
    @ApiModelProperty(value = "思考时间(ms)")
    private List<String> thinkingTime = Lists.newArrayList();
    @ApiModelProperty(value = "和allUsers一样的数据，只是填充的空格可能不一样，用于app表格展示合并")
    private List<String> appAllUsers = Lists.newArrayList();
    @ApiModelProperty(value = "成功数")
    private List<String> successCount = Lists.newArrayList();
    @ApiModelProperty(value = "总成功数，包括report中的所有事务")
    private List<String> totalSuccessCount = Lists.newArrayList();
    @ApiModelProperty(value = "失败数")
    private List<String> failCount = Lists.newArrayList();
    @ApiModelProperty(value = "总失败数，包括report中的所有事务")
    private List<String> totalFailCount = Lists.newArrayList();
    @ApiModelProperty(value = "成功率(%)")
    private List<String> successPercent = Lists.newArrayList();
    @ApiModelProperty(value = "总成功率(%)，包括report中的所有事务")
    private List<String> totalSuccessPercent = Lists.newArrayList();
    @ApiModelProperty(value = "成功tps(笔/秒)")
    private List<String> successTps = Lists.newArrayList();
    @ApiModelProperty(value = "总成功tps(笔/秒)，包括report中的所有事务")
    private List<String> totalSuccessTps = Lists.newArrayList();
    @ApiModelProperty(value = "平均响应时间(ms) 包括成功和失败")
    private List<String> totalAvgResponseTime = Lists.newArrayList();
    @ApiModelProperty(value = "90%响应时间(ms)")
    private List<String> ninetyResponseTime = Lists.newArrayList();
    @ApiModelProperty(value = "应用名称")
    private List<String> appName = Lists.newArrayList();
    @ApiModelProperty(value = "cpu平均使用率")
    private List<String> avgWholeCpuUsagePercent = Lists.newArrayList();
    @ApiModelProperty(value = "内存平均使用率")
    private List<String> avgMemUsagePercent = Lists.newArrayList();
    @ApiModelProperty(value = "事务名称key，根据name获取， 最终key值为：只有一个事务：trans1  /   多个事务：trans1_trans2_trans3")
    private List<String> transNameKey = Lists.newArrayList();

}
